<?php
if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}

class m_regulasi extends CI_Model
{
    
    public function __construct() {
        parent::__construct();
    }
    
    function get_regulasi() {
        $sql = 'SELECT * FROM regulasi';
        $query = $this->db->query($sql);
        if ($query->num_rows() > 0) {
            $result = $query->result_array();
            $query->free_result();
        } else {
            $result = array();
        }
        return $result;
    }
}
